import http from "@/utils/request";

//余额提现申请 列表
export const withdrawPage = async (data:any) => {
	return http.get<any>(`/finance/account/withdraw/page`, data)
}

// 房屋钱包余额提现
export const withdraw = async (data) => {
	return http.post<any>(`/finance/account/withdraw`,data)
}

// 个人卡包余额提现
export const withdrawalSelf = async (data) => {
	return http.post<any>(`/finance/account/withdrawal`,data)
}

// 查询所有账户
export const financeAll = async (data:any) => {
	return http.get<any>(`/finance/account/get-all`, data)
}

// 余额提现同住人审批
export const withdrawReview = async (data) => {
	return http.post<any>(`/finance/account/withdraw/review`,data)
}

// 支行名称模糊查询
export const bankListByName = async (data) => {
	return http.get<any>(`/finance/bank/list-by-name`,data)
}